package com.yxb.appointment.service;

import java.util.List;
import com.yxb.appointment.domain.MyAppointment;

/**
 * 我的预约Service接口
 * 
 * @author 林德炫
 * @date 2025-03-29
 */
public interface IMyAppointmentService 
{
    /**
     * 查询我的预约
     * 
     * @param appointmentId 我的预约主键
     * @return 我的预约
     */
    public MyAppointment selectMyAppointmentByAppointmentId(Long appointmentId);

    /**
     * 查询我的预约列表
     * 
     * @param myAppointment 我的预约
     * @return 我的预约集合
     */
    public List<MyAppointment> selectMyAppointmentList(MyAppointment myAppointment);

    /**
     * 新增我的预约
     * 
     * @param myAppointment 我的预约
     * @return 结果
     */
    public int insertMyAppointment(MyAppointment myAppointment);

    /**
     * 修改我的预约
     * 
     * @param myAppointment 我的预约
     * @return 结果
     */
    public int updateMyAppointment(MyAppointment myAppointment);

    /**
     * 批量删除我的预约
     * 
     * @param appointmentIds 需要删除的我的预约主键集合
     * @return 结果
     */
    public int deleteMyAppointmentByAppointmentIds(Long[] appointmentIds);

    /**
     * 删除我的预约信息
     * 
     * @param appointmentId 我的预约主键
     * @return 结果
     */
    public int deleteMyAppointmentByAppointmentId(Long appointmentId);

    List<MyAppointment> getListByParentName(String parentName, String status);
    List<MyAppointment> getListByTeacherName(String teacherName, String status);

    Boolean confirmAppointment(Long appointmentId);
}
